#include <iostream>

using namespace std;

int main()
{
    float A;
    float B;
    float C;
cout<<"A=";
    cin>>A;
    cout<<"B=";
    cin>>B;
    cout<<"C=";
    cin>>C;
    if ((A<B)and(B<C) or (C<B)and(B<A))
    {A=A*2, B=B*2, C=C*2;
    }
    else {A=A*(-1);B=B*(-1); C=C*(-1);
    }
    cout<<A<<"\n"<<B<<"\n"<<C<<"\n";
    return main();
}

